package vip.xiaonuo.sys.fymodule.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 平安分账会员资金冻结
 * </p>
 *
 * @author wangy
 * @since 2025-06-27
 */
@Data
@TableName("sxo_safety_freeze_funds")
@Schema(name = "SxoSafetyFreezeFunds对象", description = "平安分账会员资金冻结")
public class SxoSafetyFreezeFunds implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "自增id")
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    @Schema(description = "用户ID")
    @TableField("user_id")
    private String userId;

    @Schema(description = "冻结充值订单ID")
    @TableField("safety_order_id")
    private String safetyOrderId;

    @Schema(description = "订单ID")
    @TableField("order_id")
    private String orderId;

    @Schema(description = "订单号")
    @TableField("order_no")
    private String orderNo;

    @Schema(description = "店铺ID")
    @TableField("shop_id")
    private String shopId;

    @Schema(description = "冻结类型：1=冻结；2=解冻")
    @TableField("function_flag")
    private Integer functionFlag;

    @Schema(description = "见证子账户的账号")
    @TableField("sub_acct_no")
    private String subAcctNo;

    @Schema(description = "交易网会员代码")
    @TableField("tranNet_member_code")
    private String trannetMemberCode;

    @Schema(description = "消费金额")
    @TableField("consume_amt")
    private String consumeAmt;

    @Schema(description = "交易金额")
    @TableField("tran_amt")
    private String tranAmt;

    @Schema(description = "交易手续费")
    @TableField("tran_commission")
    private String tranCommission;

    @Schema(description = "币种")
    @TableField("ccy")
    private String ccy;

    @Schema(description = "冻结/解冻订单号")
    @TableField("freeze_order_no")
    private String freezeOrderNo;

    @Schema(description = "订单内容")
    @TableField("freeze_order_content")
    private String freezeOrderContent;

    @Schema(description = "冻结/解冻状态：-1:冻结失败；0:冻结成功")
    @TableField("freeze_status")
    private Integer freezeStatus;

    @Schema(description = "冻结/解冻时间")
    @TableField("freeze_time")
    private String freezeTime;

    @Schema(description = "交易流水号")
    @TableField("cnsmr_seq_no")
    private String cnsmrSeqNo;

    @Schema(description = "备注")
    @TableField("remark")
    private String remark;

    @Schema(description = "电商见证宝系统生成的流水号")
    @TableField("jzb_accept_seq_no")
    private String jzbAcceptSeqNo;

    @Schema(description = "错误信息")
    @TableField("error_msg")
    private String errorMsg;

    @Schema(description = "删除状态(0:正常；1：删除)")
    @TableField("status")
    private Integer status;

    @Schema(description = "添加时间")
    @TableField("add_time")
    private String addTime;

    @Schema(description = "更新时间")
    @TableField("upd_time")
    private String updTime;
}
